var tools = require('../utils/utils.js');
var request = require('request');
var mongoose = require('./mongoose.js');
var schema = {
    _id:{
        type:String,
        unique:true
    },
    docName: {
        type: String
    },
    openid:{
        type:String,
        unique: true
    },
    nickname: String,
    language: String,
    city: String,
    province: String,
    country: String,
    headimgurl: String,
    subscribe_time: Number,
    remark: String,
    groupid: Number,
    subscribe: Number,
    // 电话
    phone:String,
    // 密码
    password:{
        type:String,
        default:"123456"
    },
    // 邮箱
    email:String,
    // 个性签名
    sign:String,
    // 性别
    sex:{
        type:Boolean,
        default:0
    }
};
var model = mongoose("wechat", schema, "wechat",false).model;

module.exports = model;